package cloud.kiko.psn.feign.rmi;

import cloud.kiko.psn.pojo.common.biz.User;
import cloud.kiko.psn.pojo.common.R;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;

/**
 * 用户微服务声明式调用接口<br>
 * 2024/7/14 0:43
 */
@FeignClient(value = "biz-micro-service-user")
@RequestMapping("user")
public interface UserRMI{
	/**
	 * 根据主键查询用户
	 * @param id 用户id
	 */
	@GetMapping("{id}")
	R<User> findById(@PathVariable("id") Long id);
}
